package com.zxl.yunpicture.domain.space.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zxl.yunpicture.domain.space.entity.Space;
import com.zxl.yunpicture.domain.user.entity.User;
import com.zxl.yunpicture.interfaces.dto.space.SpaceQueryRequest;

/**
* @author ZhangXL
* @description 针对表【space(空间)】的数据库操作Service
* @createDate 2025-02-26 17:52:23
*/
public interface SpaceDomainService{


    /**
     * 将查询请求转化为QueryWrapper对象
     * @param spaceQueryRequest
     * @return
     */
    QueryWrapper<Space> getQueryWrapper(SpaceQueryRequest spaceQueryRequest);


    /**
     * 根据空间级别自动填充限额数据
     * @param space
     */
    void fillSpaceBySpaceLevel(Space space);



    /**
     * 检查空间权限
     * @param loginUser
     * @param space
     */
    void checkSpaceAuth(User loginUser, Space space);
}
